package org.jasper.plugin;

import java.util.Map;

import net.sf.jasperreports.engine.JRDataset;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JRValueParameter;
import net.sf.jasperreports.engine.JasperReportsContext;
import net.sf.jasperreports.engine.query.JRHibernateQueryExecuterFactory;
import net.sf.jasperreports.engine.query.JRQueryExecuter;

/**
 * @author PatelPr1
 *
 */
public class CustomJRHibernateQueryExecuterFactory extends JRHibernateQueryExecuterFactory{

    public JRQueryExecuter createQueryExecuter(
            JasperReportsContext jasperReportsContext, 
            JRDataset dataset, 
            Map<String, ? extends JRValueParameter> parameters
            ) throws JRException
        {
            return new JRHibernateQueryExecuter(jasperReportsContext, dataset, parameters);
        }
}
